<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

	<h:head>
		<title>#{msgs2.registrationTitle}</title>
		<link href="../08/css/styles.css" rel="stylesheet" type="text/css" />
	</h:head> 
	<body> 
		<table border="5" align="center" >
			<tr>
				<th>#{msgs2.registrationTitle}</th>
			</tr>
		</table>
		<br/>
		<h3>
			<h:outputFormat value="#{msgs2.registrationText}" >
				<f:param value="#{msgs2.fisrtName}" />
				<f:param value="#{msgs2.lastName}" />
				<f:param value="#{msgs2.emailAddress}" />
			</h:outputFormat>
		</h3>
		<h:form>
			<h:outputFormat value="#{msgs2.prompt}">
				<f:param value="#{msgs2.fisrtName}"/>
			</h:outputFormat>
			<h:inputText value="#{person2.firstName}" />
			
			<br/>
			
			<h:outputFormat value="#{msgs2.prompt}" >
				<f:param value="#{msgs2.lastName}" />
			</h:outputFormat>
			<h:inputText value="#{person2.lastName}" />
			
			<br/>
			
			<h:outputFormat value="#{msgs2.prompt}">
				<f:param value="#{msgs2.emailAddress}" />
			</h:outputFormat>
			<h:inputText value="#{person2.emailAddress}" />
			
			<br/>
			
			<h:commandButton value="#{msgs2.buttonLabel}" action="#{person2.doRegistration()}" />
			
		</h:form>
	</body> 
</html>
